package com.atguigu.gmall.common.config.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author:ahang
 * @create:2022-09-28 23:29
 * @Description:
 */
@Data
@Component  //声明也是容器中的bean
@ConfigurationProperties(prefix = "app.minio") //和配置文件 app.minio下面的配置进行绑定
public class MinioProperties {

    String secretKey;

    String accessKey;

    String endpoint;

    String bucketName;
}
